Merge "Follow-up 873d3c9ff: move new RC filters UI below the custom links"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Thu, 5 Jan 2017 20:55:15 +0000 (20:55 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Thu, 5 Jan 2017 20:55:15 +0000 (20:55 +0000)
1  2 
resources/src/mediawiki.rcfilters/mw.rcfilters.init.js

                                                        description: mw.msg( 'rcfilters-filter-editsbyother-description' )
                                                }
                                        ]
 +                              },
 +                              userExpLevel: {
 +                                      title: mw.msg( 'rcfilters-filtergroup-userExpLevel' ),
 +                                      // Type 'string_options' means that the group is evaluated by
 +                                      // string values separated by comma; for example, param=opt1,opt2
 +                                      // If all options are selected they are replaced by the term "all".
 +                                      // The filters are the values for the parameter defined by the group.
 +                                      // ** In this case, the parameter name is the group name. **
 +                                      type: 'string_options',
 +                                      separator: ',',
 +                                      filters: [
 +                                              {
 +                                                      name: 'newcomer',
 +                                                      label: mw.msg( 'rcfilters-filter-userExpLevel-newcomer-label' ),
 +                                                      description: mw.msg( 'rcfilters-filter-userExpLevel-newcomer-description' )
 +                                              },
 +                                              {
 +                                                      name: 'learner',
 +                                                      label: mw.msg( 'rcfilters-filter-userExpLevel-learner-label' ),
 +                                                      description: mw.msg( 'rcfilters-filter-userExpLevel-learner-description' )
 +                                              },
 +                                              {
 +                                                      name: 'experienced',
 +                                                      label: mw.msg( 'rcfilters-filter-userExpLevel-experienced-label' ),
 +                                                      description: mw.msg( 'rcfilters-filter-userExpLevel-experienced-description' )
 +                                              }
 +                                      ]
                                }
                        } );
  
-                       $( '.mw-specialpage-summary' ).after( widget.$element );
+                       $( '.rcoptions' ).before( widget.$element );
  
                        // Initialize values
                        controller.initialize();